package valeria;

import java.util.Scanner;

public class J10Account {
public static void main(String[]args){
	

	int aid;
	int balance;
	double interestRate;
	String dateCreated; 
	double getMonthlyInterestRate=0;
    int withDraw; 
    int deposit;

  Scanner sc=new Scanner(System.in);
  System.out.println("계좌번호는?");
  aid=sc.nextInt();
  System.out.println("잔액은?");
  balance=sc.nextInt();
  System.out.println("연간이자율은?");
  interestRate=sc.nextInt();
  System.out.println("통장 개설일은?");
  dateCreated=sc.next();
  System.out.println("입금액은?");
  deposit=sc.nextInt();
  System.out.println("인출액은?");
 withDraw=sc.nextInt();
 
 sc.close();
 
 getMonthlyInterestRate=getMonthlyInterestRate(interestRate);
 withDraw=getwithDraw(balance,withDraw);
deposit= getdeposit(balance,deposit);
	
    System.out.println(aid);
    System.out.println(balance);
   System.out.println(interestRate);
   System.out.println(getMonthlyInterestRate);
   System.out.println(dateCreated);
   System.out.println(withDraw);
   System.out.println(deposit);
	

}//main

private static double getMonthlyInterestRate(double interestRate) {

	return(interestRate / 12);
	 
}

private static int getwithDraw(int balance, int withDraw) {
	 
	    return(balance = balance - withDraw);
}

private static int getdeposit(int balance, int deposit) {
	return(balance = balance + deposit);
	
}

}//종료
